import request from 'umi-request';

export async function getRecordList(params) {
  return request('/api/member/api-member/attend/getPersonAttendList', {
    method: 'post',
    data:{
      startDate:params.date && params.date[0],
      endDate:params.date && params.date[1]
    },
  }).then((res) => {
    if (res.flag) {
      return {
        data: res.data,
        success: true,
      };
    } else {
      return {};
    }
  });
}
